package com.aowin.entity.query;

import java.util.List;

public class Page {
	private int currentPage;
	private int pageSize = 10;
	private int pageCount;
	private int total;
	private List dataList;

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageCount() {
		if(total%pageSize == 0){
			pageCount = total/pageSize;
		}else{
			pageCount = total/pageSize+1;
		}
		
		return pageCount;
	}

	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List getDataList() {
		return dataList;
	}

	public void setDataList(List dataList) {
		this.dataList = dataList;
	}

}
